﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KQ.DCMMP.Common
{
    public class ColumnConfigurationNotFoundException : ConfigurationNotFoundException
    {
        public ColumnConfigurationNotFoundException()
            : base()
        { }

        public ColumnConfigurationNotFoundException(string message) :
            base(message)
        { }

        public ColumnConfigurationNotFoundException(string message, string columnName, Guid columnID) :
            this(message)
        {
            this.ColumnName = columnName;
            this.ColumnID = columnID;
        }

        public string ColumnName { get; private set; }

        public Guid ColumnID { get; private set; }

        public override string Message
        {
            get
            {
                string msg = base.Message;
                if (ColumnName != null)
                {
                    msg += Environment.NewLine + "列名称:" + ColumnName;
                }
                return msg;
            }
        }
    }
}
